import React, { Component, PureComponent } from 'react'

export default class Recommend extends PureComponent {
  // shouldComponentUpdate: 优化渲染
  // shouldComponentUpdate(nextProps) {
  //   if (this.props.counter !== nextProps.counter) {
  //     return true
  //   }
  //   return false
  // }
  
  render() {
    console.log("Recommend render")
    return (
      <div>
        <h2>Home Page: {this.props.message}</h2>
      </div>
    )
  }
}
